using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;

namespace CapstoneWinPhone.Data
{
    public class Timestamps
    {
        public DateTime StartTime;
        private DateTime _endTime;

        public DateTime EndTime
        {
            get { return _endTime; }
            set
            {
                if(_endTime != value)
                {
                    _endTime = value;
                    IsFinishedTimeStamp = true;
                }
            }
        }

        public bool IsFinishedTimeStamp;

        public string description {get; set;}

         public Timestamps()
        {
            
        }

        public Timestamps(DateTime start)
        {
            StartTime = start;
        }

        public override string ToString()
        {
            return StartTime.ToShortDateString() + " : " + StartTime.ToShortTimeString() + "-" + EndTime.ToShortTimeString();
        }
    }
}
